package com.cavy.platform.server.domain.message;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author 唐旭
 * @Date 2018/7/24
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class HeartbeatMessage extends Message {
    private long memoryUsed;
    private int jobCount;

    public HeartbeatMessage() {
        type = this.getClass().getSimpleName();
    }

    public HeartbeatMessage(String message) {
        type = this.getClass().getSimpleName();
        this.message = message;
    }

}
